using UnityEngine;
using System.Collections;

public class Background : MonoBehaviour {
	public Transform camera;
	private float initX;
	
	void Start ()
	{
		initX = transform.position.x;
	}
	
	void Update ()
	{
		transform.position = new Vector3(initX + camera.position.x / 7.5f, transform.position.y, transform.position.z);
		Debug.Log(transform.position);
	}
}
